using ASP;
using HoWave.Web;
using HoWave.Web.Shop;
using System;
using System.Web.Profile;
using System.Web.SessionState;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
public class Shop_Auction_ShopClassChoose : Shop, IRequiresSessionState
{
	protected Image SellProductPic;
	protected ListBox ListBox1;
	protected ListBox ListBox2;
	protected ListBox ListBox3;
	protected ListBox ListBox4;
	protected HiddenField h_c_p_changeclass;
	protected HiddenField h_c_p_name;
	protected HiddenField h_c_p_type;
	protected HiddenField h_c_p_desc;
	protected HiddenField h_c_p_auction_price;
	protected HiddenField h_c_p_auction_standprice;
	protected HiddenField h_c_p_standprice;
	protected HiddenField h_c_p_teamprice1;
	protected HiddenField h_c_p_teamprice2;
	protected HiddenField h_c_p_teamprice3;
	protected HiddenField h_c_p_teamprice4;
	protected HiddenField h_c_p_teamprice5;
	protected HiddenField h_c_p_teamtype;
	protected HiddenField h_c_p_stocks;
	protected HiddenField h_c_p_province;
	protected HiddenField h_c_p_city;
	protected HiddenField h_c_p_className;
	protected HiddenField h_c_p_classID;
	protected HiddenField h_productID;
	protected HiddenField h_Request;
	protected HtmlForm form1;
	protected DefaultProfile Profile
	{
		get
		{
			return (DefaultProfile)this.Context.Profile;
		}
	}
	protected global_asax ApplicationInstance
	{
		get
		{
			return (global_asax)this.Context.ApplicationInstance;
		}
	}
	protected void Page_PreInit(object sender, EventArgs e)
	{
		try
		{
			Template.BindTemplateToPage(this.Page, "AuctionClassChoose");
		}
		catch (Exception ex)
		{
			base.WriteTemErrMsg(ex.Message.ToString());
		}
	}
	protected void Page_Load(object sender, EventArgs e)
	{
		base.ShowCityArea();
		if (!base.IsPostBack)
		{
			string text = "a";
			string text2;
			if (base.Request["change_class"] != null && base.Request["change_class"] == "true")
			{
				string str = "";
				this.h_c_p_name.Value = base.Request[str + "ProductName"];
				this.h_c_p_type.Value = base.Request[str + "H_ProductType"];
				this.h_c_p_changeclass.Value = "true";
				text2 = this.h_c_p_type.Value;
				if (text2 != null)
				{
					if (!(text2 == "a"))
					{
						if (!(text2 == "b"))
						{
							if (text2 == "t")
							{
								this.h_c_p_teamprice5.Value = base.Request[str + "TeamPrice5"];
								this.h_c_p_teamprice4.Value = base.Request[str + "TeamPrice4"];
								this.h_c_p_teamprice3.Value = base.Request[str + "TeamPrice3"];
								this.h_c_p_teamprice2.Value = base.Request[str + "TeamPrice2"];
								this.h_c_p_teamprice1.Value = base.Request[str + "TeamPrice1"];
							}
						}
						else
						{
							this.h_c_p_auction_price.Value = base.Request[str + "AuctionPrice"];
						}
					}
					else
					{
						this.h_c_p_standprice.Value = base.Request[str + "StandPrice"];
					}
				}
				this.h_c_p_stocks.Value = base.Request[str + "ProductStock"];
				this.h_c_p_province.Value = base.Request[str + "HowaveProvinceCity1$Province"];
				this.h_c_p_city.Value = base.Request[str + "HowaveProvinceCity1$City"];
				this.h_c_p_desc.Value = base.Request[str + "ProductDescripe"];
			}
			if (base.Request["RequestProduct"] != null && base.Request["RequestProduct"] == "true")
			{
				text = "r";
				this.h_Request.Value = "1";
			}
			else
			{
				if (base.Request["H_ProductID"] != null && base.Request["H_ProductID"] != "")
				{
					this.h_productID.Value = base.Request["H_ProductID"];
					this.h_Request.Value = "2";
				}
				else
				{
					this.h_Request.Value = "0";
					text = base.Request["acution_type"];
				}
			}
			text2 = text;
			if (text2 != null)
			{
				if (text2 == "a")
				{
					this.SellProductPic.ImageUrl = "/Images/standprice.gif";
					this.h_c_p_type.Value = "a";
					goto IL_477;
				}
				if (text2 == "b")
				{
					this.SellProductPic.ImageUrl = "/Images/auction.gif";
					this.h_c_p_type.Value = "b";
					goto IL_477;
				}
				if (text2 == "t")
				{
					this.SellProductPic.ImageUrl = "/Images/Teamprice.gif";
					this.h_c_p_type.Value = "t";
					goto IL_477;
				}
				if (text2 == "r")
				{
					this.SellProductPic.ImageUrl = "/Images/offer.gif";
					goto IL_477;
				}
			}
			this.SellProductPic.ImageUrl = "/Images/standprice.gif";
			this.h_c_p_type.Value = "a";
			IL_477:;
		}
	}
}
